package xiaolong.lian.service;

import xiaolong.lian.dto.DocPages;
import xiaolong.lian.entity.Doc;
import xiaolong.lian.exception.CustomException;

import java.util.List;

public interface DocService {
    List<Doc> getDocList(String tel);

    Doc createDoc(String name, String tel) throws CustomException;

    void deleteDoc(String id, String tel) throws CustomException;

    void renameDoc(String id, String newName, String tel) throws CustomException;

    DocPages syncLocalDoc(String name, List<String> pageData, String tel) throws CustomException;
}
